package com.ruoyi.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.entity.TodoConfig;
import com.ruoyi.common.core.mapper.TodoConfigMapper;
import com.ruoyi.common.core.service.BaseServiceImpl;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.stereotype.Service;
import java.util.Map;


/**
 * 待办列配置
 * @date 2024-03-22
 */
@Service
public class TodoConfigServiceImpl extends BaseServiceImpl<TodoConfigMapper, TodoConfig> {

    public void selectPage(Page page, Map<String, Object> param) {
        baseMapper.selectPage(page, param);
    }

    public void doSave(TodoConfig todoConfig) {
        todoConfig.setCreateTime(DateUtils.getNowDate());
        todoConfig.insertOrUpdate();
    }

    public void deleteById(Long id) {
        baseMapper.deleteById(id);
    }

}
